package coolq.yaozhenyong.thread;

import com.forte.qqrobot.component.forlemoc.LemocApplication;

import coolq.yaozhenyong.controller.MyqqRobot;



public class QqRobot implements Runnable {
	public  String name;
    private int time;

    public QqRobot(String s, int t) {
        name = s;
        time = t;
    }
	@Override
	public void run() {
		for (int i = 0; i < time;) { 
			System.out.println("task " + name + " " + (i + 1) + " round"); 
			new LemocApplication().run(new MyqqRobot());
			this.name = "成功";
			return ;
		}
		
	}
	
	
	 public String getRunLog() {
		 	System.out.println(this.name);
	        return this.name;
	   }
	
	
	
}
